<%@page isELIgnored="false" import="java.net.*" %>
<%@taglib prefix="tiles" uri="struts-tiles" %>
<%@taglib prefix="html" uri="struts-html" %>
<%@taglib prefix="c" uri="jstl" %>
<%@taglib prefix="fn" uri="jstl-fn" %>
					
<%@page import="com.mastercard.assets.web.util.to.UserLogin"%><div id="bodyContent">

						<h1>BPS</h1>
                                                
						<table width="100%">
							<tr>
								<td width="30%">
									<h2>
										Menu BPS
									</h2>
								</td>
								<td width="70%" align='right'>
									<a href='CrearBps.do'>
										<img alt="Crear nuevo usuario" src="images/btnAdd.gif">
									</a>
								</td>
							</tr>
						</table>
						
						<div align='center' style='text-align: center; color: red; font-size: 12px;'>
							${UserLogin.messageError}
						</div>
<c:choose>
	<c:when test="${not empty ActiveUsers}">
						<table class="tabDatos">
							<thead>
								<tr>
									<th>Account</th>
									<th>Produc</th>
									<th>Domestic Purchase Bps</th>
									<th>Percent Domestic</th>
									<th>Intl Bps</th>
                                                                        <th>Cards Bps</th>
									<th width='80px'>Operation</th>
								</tr>
							</thead>
<c:forEach items="${ActiveUsers}" var="user">

							<tr>
                                                                <td align='center'>${user.tblCuenta.nombre}</td>
								<td align='center'>${user.tblProducto.nombre}</td>
								<td align='center'>${user.domesticBps}</td>
								<td align='center'>${user.percentDomestic} </td>
								<td align='center'>${user.intlBps}</td>
                                                                <td align='center'>${user.cardBps}</td>
								<td align='center'>${user.cveDomestic}</td>
							</tr>
</c:forEach>
						</table>
						
	</c:when>
	<c:otherwise>
						<div style='text-align: center ; width: 100%; color: gray; font-size: 12px; font-weight: bold ;'>No records</div>
	</c:otherwise>
</c:choose>
						
						
						
					</div>
					<div id="footContent"></div>
<% 
UserLogin user = ( UserLogin ) request.getSession( true ).getAttribute( "UserLogin" ) ;

// en caso de que no sea null
if( user != null )
	user.clearMessageError( ) ;
%>
